// 封装相关数据请求
import service from "../utils/service.js";

let link = (url, method = "GET", data, params) => {
  return new Promise((resolve, reject) => {
    service
      .request({
        url,
        method,
        data,
        params,
      })
      .then((right) => {
        resolve(right);
      })
      .catch((err) => {
        reject(err);
      });
  });
};

export default link;

// //获取用户列表
// export const warehouseOneApi = (data) => {
//   return get({
//     url: "/warehouseOne",
//     data,
//   });
// };
